import 'package:love_newf/generated/json/base/json_convert_content.dart';
import 'package:love_newf/app/com/model/live_result_plugin_model.dart';

LiveResultPluginModel $LiveResultPluginModelFromJson(
    Map<String, dynamic> json) {
  final LiveResultPluginModel liveResultPluginModel = LiveResultPluginModel();
  final int? code = jsonConvert.convert<int>(json['code']);
  if (code != null) {
    liveResultPluginModel.code = code;
  }
  final int? errorCode = jsonConvert.convert<int>(json['errorCode']);
  if (errorCode != null) {
    liveResultPluginModel.errorCode = errorCode;
  }
  final String? msg = jsonConvert.convert<String>(json['msg']);
  if (msg != null) {
    liveResultPluginModel.msg = msg;
  }
  return liveResultPluginModel;
}

Map<String, dynamic> $LiveResultPluginModelToJson(
    LiveResultPluginModel entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['code'] = entity.code;
  data['errorCode'] = entity.errorCode;
  data['msg'] = entity.msg;
  return data;
}

extension LiveResultPluginModelExtension on LiveResultPluginModel {
  LiveResultPluginModel copyWith({
    int? code,
    int? errorCode,
    String? msg,
  }) {
    return LiveResultPluginModel()
      ..code = code ?? this.code
      ..errorCode = errorCode ?? this.errorCode
      ..msg = msg ?? this.msg;
  }
}